// TOWN DIALOGUE SCRIPT
// 	Town 0: The Temple

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;
// int i,j,k,r1,choice;

// *** Hss-Fass ***

begintalknode 1;
	state = -1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Hss-Fass";
	text1 = "This slith looks as though he's come a long way. He's sitting at the fire, resting, before he enters the temple.";
	text2 = "You know that the journey was long and hard for you, and you traveled mostly on land. You can't imagine what it would be like to swim and raft this whole way.";

begintalknode 2;
	state = 1;
	personality = 1;
	nextstate = -1;
	condition = 1;
	question = "Have you come far?";
	text1 = "The slith hisses faintly. _From the Honeycomb we came. Sss. Very far. Much water._";

begintalknode 3;
	state = 1;
	personality = 1;
	nextstate = 2;
	condition = 1;
	question = "Why have you come all this way?";
	text1 = "_To the Temple of the Goddesss. Sss. We mussst be pure. We need our home._ His grasp of your tongue is weak at best, but his passion is clear. Whatever Legare has promised these sliths, it has captured this slith's imagination.";

begintalknode 4;
	state = 2;
	personality = 1;
	nextstate = -1;
	condition = 1;
	question = "Where is your home?";
	text1 = "_Through Lost Bahssikava. Deep underground. Lossst to us, but the Prophet has found it._";

begintalknode 5;
	state = 2;
	personality = 1;
	nextstate = -1;
	condition = 1;
	question = "What will make you pure?";
	text1 = "_Sss. I do not know. Sss. But the Prophet will tell usss._";

begintalknode 6;
	state = 1;
	personality = 1;
	nextstate = 3;
	condition = 1;
	question = "What is this temple?";
	text1 = "_It isss the Temple of the Goddess. It is the way to our home. Sss. The Prophet callsss to us to come here. Sss._";

begintalknode 7;
	state = 3;
	personality = 1;
	nextstate = 2;
	condition = 1;
	question = "What will you do now that you are here?";
	text1 = "_Sss. I do not know. But my chief will tell me when it isss time to enter. Then we will purify. Then we will be ready to go home._";

//*** Hss-Pothss ***

begintalknode 8;
	state = -1;
	personality = 2;
	nextstate = 4;
	condition = 1;
	question = "Hss-Pothss";
	text1 = "This slith is clearly a female. She is a priestess of an unknown type.";
	text2 = "She must have traveled far to be here. The journey shows on her body in scratches, and she sits with the relaxation of one who has merely a break in a long ordeal.";

begintalknode 9;
	state = 4;
	personality = 2;
	nextstate = 5;
	condition = 1;
	question = "You are a priestess?";
	text1 = "_I am. I was thought to be one, anyway._ Her grasp of your tongue is surprisingly strong. _But the Prophet will make me a true priestess, a priestess of the Goddess._";

begintalknode 10;
	state = 5;
	personality = 2;
	nextstate = 6;
	condition = 1;
	question = "How do you speak my language so well?";
	text1 = "_I was an adventurer once, like yourselves. That is where I learned most of my magic. I adventured alongside humans in human lands. I have even seen the surface! But why I learned your tongue originally...._ She looks down, a surprisingly human gesture.";
	text2 = "_My family lived on an island west of Cotra, and shortly before the Empire War, we were attacked by a band of adventurers. They destroyed my entire clan. My parents were the only survivors. They fled to Silvar, where I was raised._";

begintalknode 11;
	state = 6;
	personality = 2;
	nextstate = 4;
	condition = 1;
	question = "It must have been hard to be raised among humans.";
	text1 = "_It was._ She grimaces. _We had to live outside the city, foraging in their trash for food, at least until Cotra was destroyed. Then we lived among the refugees. Among them I made the human friends who became my adventuring party._";
	text2 = "_I have left those days long behind, however. When I retired from adventuring, I found a tribe in the Honeycomb who would accept me. I joined them, and the three who are with me are from that tribe._";
	text3 = "_You understand what it is like,_ she says. _Humans are prejudiced against anyone not of their own kind. Sliths, nephils... they look down on us._";
	code =
	if (get_flag(251,0) > 0)
		remove_string(3);
break;

begintalknode 12;
	state = 5;
	personality = 2;
	nextstate = 7;
	condition = 1;
	question = "Who is the Prophet?";
	text1 = "His given name was Legare. We know little about him except that he came from the north into Gnass a few months ago, preaching that the promised time had come._";

begintalknode 13;
	state = 7;
	personality = 2;
	nextstate = 4;
	condition = 1;
	question = "The promised time?";
	text1 = "_The time when we sliths would return home. We are exiles just like the humans, you know. But now humans can go back to the surface, to their home, if they choose, and many have. We sliths cannot go home. We have lost the way._";
	text2 = "_But there is an ancient prophecy, kept alive in all slith tradition, that when we have finally defeated our lust for blood, we will be able to return home._ She looks toward the temple. _The Prophet says we are ready to make that spiritual journey._";

begintalknode 14;
	state = 5;
	personality = 2;
	nextstate = 4;
	condition = 1;
	question = "What is the Goddess?";
	text1 = "_We know so little about her,_ she admits. _The Prophet tells us that she is the mother of all sliths, the queen of all slith gods. She speaks to him, tells him things, and he relates these prophecies to us. But we do not truly know who she is._";

//*** Sss-Tss ***

begintalknode 15;
	state = -1;
	personality = 3;
	nextstate = 8;
	condition = 1;
	question = "Sss-Tss";
	text1 = "This slith is worn down from the journey he has made. He carries a few ragged pouches, indications of his priestly trade.";

begintalknode 16;
	state = 8;
	personality = 3;
	nextstate = 8;
	condition = 1;
	question = "Have you come far?";
	text1 = "_From the Honeycomb. Sss._";

begintalknode 17;
	state = 8;
	personality = 3;
	nextstate = 9;
	condition = 1;
	question = "Why are you here?";
	text1 = "_We want see Temple. Sss. Prophet. Goddess. We must purify. Sss._";

begintalknode 18;
	state = 9;
	personality = 3;
	nextstate = 8;
	condition = 1;
	question = "Purify?";
	text1 = "_Yesss. Purify. Wash water. Clean self. Clean inside._ He points to his chest. _Inside. Yesss?_ You nod.";

//*** Slith chief outside Temple ***

begintalknode 19;
	state = -1;
	personality = 4;
	nextstate = 10;
	condition = 1;
	question = "Hss-Chalss";
	text1 = "This slith is the chief of a clan. You can tell by his decorated headdress. Like the three others, he looks as though he has come quite a long way to get here.";

begintalknode 20;
	state = 10;
	personality = 4;
	nextstate = 11;
	condition = 1;
	question = "Who are you?";
	text1 = "_I am the chief of these sliths. We are a small part of a tribe that lives in the Honeycomb, west of Mertis. We have traveled here together to be a part of the Prophet's great expedition._ He speaks your language extremely well for a slith.";
	text2 = "Most sliths haven't spent as much time around humans as your party has, so their language is noticeably stunted.";
	code =
	if (get_flag(250,4) <= 4)
		remove_string(2);
break;

begintalknode 21;
	state = 11;
	personality = 4;
	nextstate = 10;
	condition = 1;
	question = "How do you speak my language so well?";
	text1 = "_I learned. I made trips to Mertis from time to time. In my childhood, sliths and humans were not at war, and Mertis welcomed any fellow enemy of the undead that plagued the region.";

begintalknode 22;
	state = 11;
	personality = 4;
	nextstate = 12;
	condition = 1;
	question = "Who is the Prophet?";
	text1 = "_Our priestess knows more about his identity. I have heard humans call him, 'Legare.' Beyond that, I know only his actions._";
	text2 = "_He came to Gnass a few months ago, preaching that our time of exile would soon end. Word of his teachings traveled far: he sent missionaries out to every known slith outpost. He called all the faithful to join him here, at the Temple of the Goddess._";

begintalknode 23;
	state = 12;
	personality = 4;
	nextstate = 10;
	condition = 1;
	question = "Who is this Goddess, by the way?";
	text1 = "_I don't know. No one really does. She speaks to the Prophet and the Prophet alone. He tells us what she says._";

//*** Kass ***

begintalknode 24;
	state = -1;
	personality = 5;
	nextstate = 13;
	condition = 1;
	question = "Kass";
	text1 = "Before you can take more than a few steps, this slith priest addresses you. _Adventurers,_ he says. _May I have a word with you?_";

begintalknode 25;
	state = 13;
	personality = 5;
	nextstate = 14;
	condition = 1;
	question = "What is it?";
	text1 = "_You are here to see the Prophet, correct?_ That must be Legare. You nod. _You just missed him. He has traveled on to Bahssikava. My name is Kass. I am here to instruct you on what you are to do._";

begintalknode 26;
	state = 14;
	personality = 5;
	nextstate = 15;
	condition = 1;
	question = "Well, then, what is it? What am I to do?";
	text1 = "_You must first purify yourself, body and mind._";

begintalknode 27;
	state = 15;
	personality = 5;
	nextstate = 16;
	condition = 1;
	question = "Didn't I just do that?";
	text1 = "He laughs. _No, that was just a preliminary. Those who only wish to see the Temple of the Goddess must only pay their respects at the altar. You, however, must go to Bahssikava. You must be pure._";

begintalknode 28;
	state = 16;
	personality = 5;
	nextstate = 13;
	condition = 1;
	question = "What must I do to be pure?";
	text1 = "_You must wash yourself in one of these purification pools. Since you are not a slith, and thus you are not atoning, you do not need to wash yourself in all twelve as we do._";
	text2 = "_Follow the instructions on the signs near the pool. Wash yourself. Some of the liquids may sting, some quite a lot. Do not let that stop you._";
	text3 = "_You must detach your mind from the physical world. Let your body tell you that it hurts, but do not let the pain control you. I will be waiting for you at the last purification pool._";
	code =
	set_flag(0,4,1);
	end();
break;

begintalknode 29;
	state = 16;
	personality = 5;
	nextstate = 17;
	condition = 1;
	question = "What is Bahssikava?";
	text1 = "_We sliths are exiles, just like the humans and nephils of Avernum. Bahssikava is the name of the city built at the end of the tunnel through which we came into our exile here in Avernum. Bahssikava is the way to our homeland._";

begintalknode 30;
	state = 17;
	personality = 5;
	nextstate = 18;
	condition = 1;
	question = "If people know about Bahssikava, why haven't the sliths gone home, then?";
	text1 = "He chuckles at your ignorance. _Bahssikava is, in slith tradition, known as 'Lost Bahssikava.' We did not know until very recently where it was. That was the Prophet's first gift to us: knowledge of the location of Lost Bahssikava._";
	text2 = "_There are other obstacles, but that can wait until you have purified yourself._";

begintalknode 31;
	state = 18;
	personality = 5;
	nextstate = 19;
	condition = 1;
	question = "How did Leg, um, I mean, the Prophet know where Bahssikava is?";
	text1 = "_All this must wait until you purify yourself,_ he replies.";

begintalknode 32;
	state = 19;
	personality = 5;
	nextstate = 13;
	condition = 1;
	question = "What must I do to purify myself?";
	text1 = "_You must wash yourself in one of these purification pools. Since you are not among Legare's followers_ -- you swear you could hear him almost say _yet_ -- _and thus you are not atoning, you do not need to wash yourself in all twelve as we do._";
	text2 = "_Follow the instructions on the signs near the pool. Wash yourself. Some of the liquids may sting, some quite a lot. Do not let that stop you._";
	text3 = "_You must detach your mind from the physical world. Let your body tell you that it hurts, but do not let the pain control you. I will be waiting for you at the last purification pool._";
	code =
	set_flag(0,4,1);
	end();
break;

begintalknode 33;
	state = 18;
	personality = 5;
	nextstate = 13;
	condition = 1;
	question = "What must I do to purify myself?";
	text1 = "_You must wash yourself in one of these purification pools. Since you are not a slith, and thus you are not atoning, you do not need to wash yourself in all twelve as we do._";
	text2 = "_Follow the instructions on the signs near the pool. Wash yourself. Some of the liquids may sting, some quite a lot. Do not let that stop you._";
	text3 = "_You must detach your mind from the physical world. Let your body tell you that it hurts, but do not let the pain control you. I will be waiting for you at the last purification pool._";
	code =
	set_flag(0,4,1);
	end();
break;

begintalknode 34;
	state = 14;
	personality = 5;
	nextstate = 17;
	condition = 1;
	question = "What is Bahssikava?";
	text1 = "_We sliths are exiles, just like the humans and nephils of Avernum. Bahssikava is the name of the city built at the end of the tunnel through which we came into our exile here in Avernum. Bahssikava is the way to our homeland._";

begintalknode 35;
	state = -1;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "Kass";
	text1 = "Kass is praying. He finishes his prayer and looks up at you. _Have you purified yet?_ he asks.";
	text5 = "Kass looks at you patiently.";
	action = INTRO;

begintalknode 36;
	state = 20;
	personality = 5;
	nextstate = -1;
	condition = get_flag(0,5) == 0;
	question = "I have not purified yet.";
	text1 = "_Then you'd better be about it. You can't go to Bahssikava without being pure._";
	action = END_TALK;

begintalknode 37;
	state = 20;
	personality = 5;
	nextstate = 21;
	condition = get_flag(0,5) > 0;
	question = "I have purified.";
	text1 = "_Good. Now we may discuss matters of importance. You must want to know very many things. I am afraid that my answers must be limited. I cannot speak for the Prophet in many things, only in where you must go now._";
	text2 = "_However, you are welcome to ask me whatever you like._";

begintalknode 38;
	state = 21;
	personality = 5;
	nextstate = 21;
	condition = 1;
	question = "What are we supposed to do now?";
	text1 = "_You must go to Bahssikava. The Prophet waits for you there. I know little of your mission, and I am under strict orders not to say any more than that. The Prophet will tell you all that you need to know._";
	text2 = "_To get to Bahssikava, walk out the temple exit to the north of here. You are welcome to look around before you do. You are invited to witness the awe and majesty that is the Temple of the Goddess._";
	text3 = "_We are gentle folk who live here. We ask only that you commit no act of violence in the Temple. You are free to speak with whomever you wish, and you may enter any of the rooms._";
	text4 = "_I recommend visiting the library,_ he adds. _It is small because it is new, but it is still worth seeing. It is in the northeast corner of the Temple._";
	action = SET_SDF 0 16 1;

begintalknode 39;
	state = 21;
	personality = 5;
	nextstate = 22;
	condition = 1;
	question = "What is Bahssikava?";
	text1 = "_We sliths are exiles, just like the humans and nephils of Avernum. Bahssikava is the name of the city built at the end of the tunnel through which we came into our exile here in Avernum. Bahssikava is the way to our homeland._";

begintalknode 40;
	state = 22;
	personality = 5;
	nextstate = 23;
	condition = 1;
	question = "If people know about Bahssikava, why haven't the sliths gone home, then?";
	text1 = "He chuckles at your ignorance. _Bahssikava is, in slith tradition, known as 'Lost Bahssikava.' We did not know until very recently where it was. That was the Prophet's first gift to us: knowledge of the location of Lost Bahssikava._";
	text2 = "_There are other obstacles, too. The tunnel that leads from Bahssikava to our homeland is long, and it has been sealed by enormous steel doors._";
text3 = "_Years ago, when sliths lived here, they could not pass those doors, or we would be home now. Thus the Prophet's second gift: the knowledge of how to open the doors._";

begintalknode 41;
	state = 23;
	personality = 5;
	nextstate = 21;
	condition = 1;
	question = "He knows how to open the doors?";
	text1 = "_Yes. The Goddess, glory be to her name, has seen fit to grant him the power to open the gateway home that has been closed to us for more than two hundred years._";
	text2 = "Kass pauses. _I cannot say more. You must hear the rest of the good news from the Prophet's mouth directly. Thus, I should tell you what you must do now._";

begintalknode 42;
	state = 21;
	personality = 5;
	nextstate = 21;
	condition = 1;
	question = "What is this Temple of the Goddess? What goddess?";
	text1 = "_The Temple of the Goddess is what we true believers have erected in the past month. We have the full twelve purification pools, and we are adding a library filled with religious texts, the Prophet's writings, and priestly spellbooks._";
	text2 = "The Temple was built in tribute to the Goddess of the Prophet, of whom we know very little. The Prophet has seen fit to tell us only a few of her words._";
	text3 = "_She is a goddess of healing and forgiveness, in contrast to the brutal war gods of the Darklings, the evil sliths who even now, as their race dies, foolishly make war against humanity._";
	text4 = "_She is the mother of all slithkind, and she has told the Prophet that now is the time to return home again._";

begintalknode 43;
	state = 21;
	personality = 5;
	nextstate = 24;
	condition = 1;
	question = "Who is the Prophet?";
	text1 = "_He is known to those not of our faith as Legare. He was a warrior of the small group of sliths who lived in Bahssikava twenty years ago, before it was destroyed._";
	text2 = "_He was on an expedition to discover an answering stone, a prayer aid for the sliths of those days, and the expedition met with disaster. Drakes attacked it, and he was the only survivor._";
	text3 = "_A group of humans followed shortly after, and they found the answering stone. The Prophet, however, remained below, meditating._";
	text4 = "_For twenty years he stayed there, meditating and living off the few cave fish. After some time, when he was aching with the pangs of hunger, the Goddess came to him. She told him the good news._";

begintalknode 44;
	state = 24;
	personality = 5;
	nextstate = 21;
	condition = 1;
	question = "Good news?";
	text1 = "_She told him that the time of exile was nearing its end. He was the one who would lead the sliths back to their homeland. He was chosen to be the one to redeem us for our sins and bring us back into the place where we belong._";
	text2 = "_The Prophet communed with the Goddess for years, preparing his body, his mind, and his prayers. He asked her many questions, and she revealed to him many truths, truths that we are not ready to hear yet._";
	text3 = "_As we progress in our faith, he will tell us more. For now, we know nothing more than that after he spent twenty years in that cave, the Prophet emerged. He traveled to Gnass and sent out a call to all sliths: come to the Temple of the Goddess._";
	text4 = "_And they came. Now that Lost Bahssikava is found and the doors will be opened, the time is truly near. We shall return home. And the Prophet is responsible for this._";

//*** Purifying slith ***

begintalknode 45;
	state = -1;
	personality = 6;
	nextstate = -1;
	condition = 1;
	question = "Purifying slith";
	text1 = "This slith is washing himself with the water from the purification pool in front of him. He shakes as he applies the water to himself. It sizzles as it hits his skin, the acid burning away at him.";
	text2 = "He is busy and will not talk to you.";

//*** Thess-Fss ***

begintalknode 46;
	state = -1;
	personality = 7;
	nextstate = 25;
	condition = 1;
	question = "Thess-Fss";
	text1 = "This slith has just finished washing himself with the purifying water. He shakes from the pain of the acidic water.";
	text2 = "He looks up at you. _Yesss?_";
	text5 = "He shakes slightly as the acid eats at his skin.";
	action = INTRO;

begintalknode 47;
	state = 25;
	personality = 7;
	nextstate = -1;
	condition = 1;
	question = "Who are you?";
	text1 = "_Name Thess-Fss mine,_ he says, struggling to speak your language. _From Waterfall Warrensss. Long waysss._";

begintalknode 48;
	state = 25;
	personality = 7;
	nextstate = 26;
	condition = 1;
	question = "What are you doing?";
	text1 = "_Purify._ He points to the pool of water. _Prophet says we mussst. Bahssikava._ He thinks for a moment and then, in heavily accented speech, he struggles out, _I want go to Bahssikava. The Prophet says must purify if go to Bahssikava._";

begintalknode 49;
	state = 26;
	personality = 7;
	nextstate = 25;
	condition = 1;
	question = "What is Bahssikava?";
	text1 = "_Home,_ the slith replies. He is sure of that word, at least. _Bahssikava home._";

begintalknode 50;
	state = 25;
	personality = 7;
	nextstate = -1;
	condition = 1;
	question = "Why are you shaking?";
	text1 = "_Water burn,_ he says simply. _Purify, but burn._";

//*** Head cook ***

begintalknode 51;
	state = -1;
	personality = 8;
	nextstate = 27;
	condition = 1;
	question = "Head cook";
	text1 = "This slith is walking about the room, tasting stew, cutting fish, instructing other sliths on cooking, and doing all the things that a head cook would do in a kitchen designed to feed dozens of mouths.";
	text2 = "He stops for long enough to talk with you. _Yesss?_ he says in a sibilant voice.";
	text5 = "The slith waits impatiently for your next question.";
	action = INTRO;

begintalknode 52;
	state = 27;
	personality = 8;
	nextstate = -1;
	condition = 1;
	question = "What do you do here?";
	text1 = "_I am cook. I..._ he waves his claws at the other sliths who are cooking _... I tell what cook. How much, how long. Then sliths come. Eat._";

begintalknode 53;
	state = 27;
	personality = 8;
	nextstate = 28;
	condition = 1;
	question = "Are you a priest?";
	text1 = "_Yesss. I was priesst of tribe in Waterfall Warrensss._ He thinks for a moment, finding the right words. _But when came here, none know how cook. I know. So I cook._";

begintalknode 54;
	state = 28;
	personality = 8;
	nextstate = 27;
	condition = 1;
	question = "There was a slith tribe in the Waterfall Warrens?";
	text1 = "_Yesss. Chief near here._ He remembers something. _No. Chief in Bahssikava. Talk him. He talk better._";

begintalknode 55;
	state = 27;
	personality = 8;
	nextstate = 29;
	condition = 1;
	question = "Why did you come to this temple?";
	text1 = "_Come because chief come. Chief say Prophet told us all come. Goddess tell Prophet tell sliths come. Goddess good. Obey Goddess. So I come._";

begintalknode 56;
	state = 28;
	personality = 8;
	nextstate = 30;
	condition = 1;
	question = "Who is the Goddess?";
	text1 = "The slith's vocabulary completely fails him. _Chief know. Chief tell you. I no speak well. Ask chief._";

begintalknode 57;
	state = 30;
	personality = 8;
	nextstate = 27;
	condition = 1;
	question = "Where is your chief?";
	text1 = "_Chief near here._ He remembers something. _No. Chief in Bahssikava. Talk him. He talk more well._";

//*** Ethass ***

begintalknode 58;
	state = -1;
	personality = 9;
	nextstate = 31;
	condition = 1;
	question = "Ethass";
	text1 = "_Hello,_ this slith says as you approach her. She is young and clearly energetic, walking from place to place, inspecting books here, cleaning dirty spots there, and generally keeping the library in order.";
	text2 = "_Pardon me for not stopping my work as I talk with you. I do have so much of it, as you can very well see. What is it that you would like to know?_ She speaks without a trace of the sibilant slith accent.";
	text5 = "She continues on with her work, waiting for your next question.";
	action = INTRO;
	code =
	set_flag(0,23,1);
	break;

begintalknode 59;
	state = 31;
	personality = 9;
	nextstate = 32;
	condition = 1;
	question = "How do you speak my language so well?";
	text1 = "_I'm from Gnass. Growing up around there, I heard human speech every day.  Traders from Blosk. Military patrols from Fort Emerald. Adventurers of all sorts. Uncle Justin and Aunt Rita were humans.";

begintalknode 60;
	state = 32;
	personality = 9;
	nextstate = 33;
	condition = 1;
	question = "Your uncle and aunt were humans?";
	text1 = "_Well, they weren't really my uncle or aunt._ She giggles, something that you didn't even know a slith could do. _They were friends of my family._";
	text2 = "_They both fought against the Empire in their own ways. That made them good humans in my eyes._";

begintalknode 61;
	state = 33;
	personality = 9;
	nextstate = -1;
	condition = 1;
	question = "Why did fighting against the Empire make them good humans?";
	text1 = "_Because in those days, the Empire was trying to exterminate every slith in existence._ She gives you a long look.";
	text2 = "_We lived in fear every day that the Empire would break through Fort Emerald, and if they did, we knew that the first thing they would do is destroy Gnass, and we would all perish._";
	text3 = "_Of course, these days, the Empire is our friend._ She shrugs. _I suppose I've forgiven them for attempting to eradicate my people._";

begintalknode 62;
	state = 33;
	personality = 9;
	nextstate = 34;
	condition = 1;
	question = "Tell me about your uncle and aunt.";
	text1 = "_Uncle Justin was a priest of the Temple of the Flying Spirit. He was a wanderer, never staying in one place for too long, although he was based out of Blosk for many years._";
	text2 = "_He loved life dearly. He found beauty in the strangest places. Blosk was a dirty, ugly, digusting city, but he thought it was as beautiful as anything. He traveled to the farthest reaches of Avernum, trying to see everything there was to see._";
	text3 = "_He had met nearly every living being you can imagine. He visited Motrax, the dragon. He spoke with Erika, the incantrix. He met the great adventuring party that met the vahnatai and slew Garzahd. He knew Patrick, the great archmage, personally._";
	text4 = "_But what he loved more than anything else was learning._";

begintalknode 63;
	state = 34;
	personality = 9;
	nextstate = 35;
	condition = 1;
	question = "What did he learn?";
	text1 = "_He learned more in one lifetime than most humans could learn in three. He studied at Patrick's Tower, at the Tower of Magi, at Solberg's Tower, and even with Erika in her tower._";
	text2 = "_He didn't have the knack for magic. He had some priestly power, but he was more interested in the knowledge. He knew the names of every tree and rock in the caves, and once the surface opened up a few years ago, he went there to learn more._";
	text3 = "She sighs. _He was only middle-aged when he ventured too near the giants of central Valorim. He had spoken with cave giants already, something no one else had ever managed, but he was just so personable that they didn't try to kill him with their rocks._";
	text4 = "_He wasn't careful enough. The giants are at war with the troglodytes, and a troglodyte missile went astray. It killed him instantly._ Her eyes are damp, and she wipes one with a claw. _I felt more sorry for Aunt Rita, though._";

begintalknode 64;
	state = 35;
	personality = 9;
	nextstate = 36;
	condition = 1;
	question = "Why?";
	text1 = "_Uncle Justin lived his life to the fullest. He died as he lived, learning and loving life. Aunt Rita was devastated, though. She tried to go on as he would've wanted her to, but she just couldn't._";
	text2 = "_Without his effusive joy always lifting her up, she passed away not too long afterwards._";
	text3 = "_Her passing was mourned, too. She had lived an incredible life._";

begintalknode 65;
	state = 36;
	personality = 9;
	nextstate = 37;
	condition = 1;
	question = "What did Aunt Rita do?";
	text1 = "_She was a magical researcher based out of Patrick's Tower. She traveled much even before she met Uncle Justin, but together they went even farther in search of knowledge. His personality and her power made a winning combination._";
	text2 = "_She specialized in magical items. In her later years, she was the keeper of the great magical items of the Tower of Magi. She was fortunate enough to be away when the tower was destroyed, but, as I already said, she died only a short time later._";
	text3 = "_They were both very kind to us sliths. They had come through Gnass every few years since I was a child. They taught me how to read, something that few sliths know._ She smiles. _That is why I'm the librarian._";
	text4 = "_Uncle Justin and Aunt Rita had a daughter named Phaedra. She is one of the few humans that Legare has let inside Bahssikava. If you travel further in, you might meet her._";
	action = SET_SDF 0 17 1;

begintalknode 66;
	state = 32;
	personality = 9;
	nextstate = -1;
	condition = 1;
	question = "Why aren't you in Gnass now?";
	text1 = "_The Prophet asked me to be the librarian of his new library here._ She shrugged. _It sounded like a good job._";

begintalknode 67;
	state = 32;
	personality = 9;
	nextstate = -1;
	condition = 1;
	question = "What do you think of the Prophet?";
	text1 = "_He seems like a good guy._ She looks around and makes sure that no one is listening. _I don't really believe this Goddess stuff, though. We sliths have been in exile for as long as anyone can remember, and I think we'll stay in exile forever._";
	text2 = "_It doesn't go over well to say that too loudly, though. I just do my job here. Most others around here really believe that he is a prophet. They wouldn't react too kindly to me saying anything about him._";
	action = SET_SDF 0 22 1;

begintalknode 68;
	state = 32;
	personality = 9;
	nextstate = -1;
	condition = 1;
	question = "How is Gnass doing now?";
	text1 = "She looks side to side nervously. _Well, he doesn't really like to talk about this, but Legare had a dispute with the priests in Gnass._";
	text2 = "_Some of the priests came with him, like Kass. Others thought he was challenging their authority and didn't like it. They managed to get him exiled._";
	text3 = "_People are still debating in Gnass, those who didn't come here. Some believe in Legare, and some think he is a dangerous heretic. It's not very comfortable to be in Gnass right now._";

begintalknode 69;
	state = 31;
	personality = 9;
	nextstate = 38;
	condition = 1;
	question = "Tell me about the library.";
	text1 = "_Gladly,_ she says, beaming. _It is the finest collection of slith-related materials you will find anywhere. It contains even the most esoteric topics of slith studies._ Pity. Searching through all that for something useful would be impossible.";
	text2 = "_We have many of the Prophet's writings here, and we were hoping to add more, but he is away right now and won't be writing more for us for a while._";

begintalknode 70;
	state = 38;
	personality = 9;
	nextstate = 39;
	condition = 1;
	question = "What kinds of writing from Legare do you have?";
	text1 = "_Lots of kinds. We have his poetry, his prophecies from the Goddess, his histories transmitted to him from the Goddess, and everything else that he's ever written._";

begintalknode 71;
	state = 39;
	personality = 9;
	nextstate = 40;
	condition = 1;
	question = "Can I see some of it?";
	text1 = "She remembers something. _Well, no. Just before he left, he gave orders that no one see his books anymore. They are in a back room, and you can't get access unless he tells you that you can._";

begintalknode 72;
	state = 40;
	personality = 9;
	nextstate = -1;
	condition = 1;
	question = "Where did he go?";
	text1 = "_To Bahssikava. West out of the Temple and north through the tunnels from there. You should probably go there and talk to him if you want to read his writings._";

//*** Gatekeeper ***

begintalknode 73;
	state = -1;
	personality = 10;
	nextstate = 41;
	condition = 1;
	question = "Gatekeeper";
	text1 = "This slith stands by the controls to the gate, watching you.";

begintalknode 74;
	state = 41;
	personality = 10;
	nextstate = -1;
	condition = 1;
	question = "What do you do here?";
	text1 = "_Gate._ He points. _I open. I close. Sss._";

begintalknode 75;
	state = 41;
	personality = 10;
	nextstate = -1;
	condition = get_terrain(6,6) == 29;
	question = "Will you open the gate for me?";
	text1 = "_No. Sss. No one passs. Speak to Kass. Prophet gone. Kass leader. If Kass tell you that you passs, then you passs. Sss._";
	text3 = "_Sss. Kass say you passs._ He opens the gate.";
	action = DEP_ON_SDF 0 16 0;
	code = 
	if (get_flag(0,16) == 1)
	{flip_terrain(6,4);
	flip_terrain(6,5);
	flip_terrain(6,6); 
	play_sound(99); }
	break;

begintalknode 76;
	state = -1;
	personality = 100;
	nextstate = 42;
	condition = 1;
	question = "Slith priest";
	text1 = "This slith sits behind a counter, keeping track of papers. He looks up at you. _Yesss?_ His voice is extremely sibilant.";
	text5 = "_With what elssse can I help you?_";
	action = INTRO;

begintalknode 77;
	state = 42;
	personality = 100;
	nextstate = 43;
	condition = 1;
	question = "What do you do here?";
	text1 = "_I check in new arrivals. All new arrivals mussst purify through the twelve purification poolsss. Then they may recover in the guessst roomsss. After that, they may travel on to Bahssikava._";

begintalknode 78;
	state = 43;
	personality = 100;
	nextstate = 42;
	condition = 1;
	question = "Am I supposed to check in with you?";
	text1 = "_If you were a pilgrim, yesss. You are not. You work for the Prophet. Thusss I already knew that you were coming, and you do not need to check in._";

begintalknode 79;
	state = 42;
	personality = 100;
	nextstate = 44;
	condition = 1;
	question = "Do many people pass through here?";
	text1 = "_Many, many slithsss wish to join the Prophet in his gloriousss quessst._";

begintalknode 80;
	state = 44;
	personality = 100;
	nextstate = 42;
	condition = 1;
	question = "Quest?";
	text1 = "He looks at you as if you are slightly daft. _It isss not for me to speak of such thingsss. Asssk Kass._";

begintalknode 81;
	state = 42;
	personality = 100;
	nextstate = 45;
	condition = 1;
	question = "How did you learn human language?";
	text1 = "He shrugs. _I picked it up over yearsss with humansss. I can write well, but I cannot get rid of thisss accent._ He's right. Even his F's and T's almost sound like hisses.";
	text2 = "_I am from the Abysss. There, race did not matter. We fought for survival alongside the humansss as if they were the same as us._";

begintalknode 82;
	state = 45;
	personality = 100;
	nextstate = -1;
	condition = get_flag(0,18) == 0 && get_flag(0,19) == 0;
	question = "The Abyss! Eek! You're a criminal! Get away!";
	text1 = "He regards you with a certain mix of amusement, irritation, and confusion. He seems quite willing not to speak to you, though.";
	code =
	set_flag(0,18,1);
	end();
break;

begintalknode 83;
	state = 45;
	personality = 100;
	nextstate = 42;
	condition = get_flag(0,18) == 0 && get_flag(0,19) == 0;
	question = "If you are from the Abyss, you must be accustomed to overcoming difficult situations.";
	text1 = "He nods. _After yearsss in the Abyss, the chance to journey to the homeland is a greater one than I ever expected to be offered._";
	text2 = "_I am grateful to King Micah for allowing usss to leave the Abyss to take advantage of thisss opportunity. We of the Abyss are in his debt._";
	code =
	set_flag(0,19,1);
break;

begintalknode 84;
	state = 16;
	personality = 5;
	nextstate = 19;
	condition = 1;
	question = "What is this Temple of the Goddess? What goddess?";
	text1 = "_The Temple of the Goddess is what we true believers have erected in the past month. We have the full twelve purification pools, and we are adding a library filled with religious texts, the Prophet's writings, and priestly spellbooks._";
	text2 = "_The Temple was built in tribute to the Goddess of the Prophet, of whom we know very little. The Prophet has seen fit to tell us only a few of her words. Soon you will know as much as I. But first, you must be pure._";

// *** Jostoss ***

begintalknode 85;
	state = -1;
	personality = 101;
	nextstate = 46;
	condition = 1;
	question = "Jostoss";
	text1 = "The slith near the bonfire sits quietly, warming his hands, claws outstretched to the flames. He looks up at you as your approach. _Greetings, travelers,_ he says. _My name is Jostoss._";
	text5 = "Jostoss warms his hands at the fire, waiting for your next question.";
	action = INTRO;
	
begintalknode 86;
	state = 46;
	personality = 101;
	nextstate = 47;
	condition = 1;
	question = "What do you do here at the temple?";
	text1 = "_I am one of the construction workers,_ he replies. _There were many more of us, but they traveled on to Bahssikava. We few who remain are building the final rooms for the temple._";

begintalknode 87;
	state = 47;
	personality = 101;
	nextstate = 47;
	condition = 1;
	question = "How did you become a construction worker?";
	text1 = "_I was abandoned by my parents as an infant. Some humans in Almaria found me, and they sent me to the Tower of Magi, where I was raised as a foundling._";
	text2 = "He flicks another branch into the fire. _Thus, like so many other sliths here, I was raised by humans. They taught me everything that I know, and engineering in particular was my passion, so this is what I do._";
	text3 = "He looks up at you. _You may encounter my brother, Talas, if you journey farther in. He is not really my brother, but we were raised together._";

begintalknode 88;
	state = 47;
	personality = 101;
	nextstate = 47;
	condition = 1;
	question = "What are these final rooms going to be?";
	text1 = "_A garrison. You might wonder why, since there are no hostile monsters nearby. It is simple: the Prophet fears attack from his own kind._";
	text2 = "Jostoss shakes his head ruefully. _The word is that the priests of Gnass are incensed, and he wants to be ready if they come with an army. We are not ready yet, but we will be soon._";
	text3 = "He tosses another stick into the fire. _In fact, if they were to come now, our best hope would be to abandon this temple and try to hide behind the fort in Bahssikava. But soon, soon we will be ready._";

// *** Tekoss ***

begintalknode 89;
	state = -1;
	personality = 102;
	nextstate = 48;
	condition = 1;
	question = "Tekoss";
	text1 = "The slith working on repairing the wall looks up as you approach. _I greet,_ he says. _Tekoss name._ He speaks haltingly, searching for words.";
	text2 = "Most sliths without extensive human contact are like this, unable to speak very well. Barbarian sliths living in the central waters of Avernum had little need for language, so they lost most of whatever they originally had.";
	text5 = "Tekoss continues to work on the wall as he talks to you.";
	action = INTRO;

begintalknode 90;
	state = 48;
	personality = 102;
	nextstate = 48;
	condition = 1;
	question = "What are you doing here?";
	text1 = "_Wall broke. We fix. Wall broke because... rocks. Few rocks._ He makes a motion of putting rocks up against the wall, bolstering it. Presumably he means that the wall had too little support.";
	text2 = "_Soon fix. Prophet want soon fix. We do. Prophet want, we do._ He shrugs.";